//
//  ClassContentData.m
//  LiangYa_BObject
//
//  Created by dllo on 15/10/30.
//  Copyright © 2015年 YuHao. All rights reserved.
//

#import "ClassContentData.h"

@implementation ClassContentData

- (void)setValue:(id)value forUndefinedKey:(NSString *)key
{
    if ([key isEqualToString:@"goods_thumb"]) {
        NSString *str = [NSString stringWithFormat:@"http://image.meilele.com/%@", value];
        self.imageC = [NSURL URLWithString:str];
    }
    if ([key isEqualToString:@"show_price"]) {
        NSString *str = [NSString stringWithFormat:@"￥%@", [value stringValue]];
        self.price = str;
    }
    if ([key isEqualToString:@"total_sold_yes_count"]) {
        NSString *str = [NSString stringWithFormat:@"已售%@", [value stringValue]];
        self.soldNum = str;
    }
    if ([key isEqualToString:@"goods_uri"]) {
        NSString *str = [NSString stringWithFormat:@"http://m.meilele.com/%@", value];
        self.buy_url = str;
    }
}

- (id)valueForUndefinedKey:(NSString *)key
{
    return nil;
}

@end
